import service from '@/api/request/request'

export function getAppList () {
  return service({
    url: '/application/list',
    method: 'get'
  })
}

export function getApp (params) {
  return service({
    url: '/application/get',
    method: 'get',
    params
  })
}

export function stopApp (data) {
  return service({
    url: '/application/stop',
    method: 'post',
    data
  })
}

export function createApp (data) {
  return service({
    url: '/application/create',
    method: 'post',
    data
  })
}

export function editApp (data) {
  return service({
    url: '/application/edit',
    method: 'post',
    data
  })
}

export function restartApp (data) {
  return service({
    url: '/application/restart',
    method: 'post',
    data
  })
}
